import { UserFields } from 'types/modelFields'
import { RoleFields } from 'types/modelFields'
import { MenuFields } from 'types/modelFields'
// 用户登录--获取角色--查询角色菜单表(可用lookup查询)--组织菜单返回
export const initialUserInfo: UserFields = {
  username: 'Admin',
  password: 'fbd8966344d410778b0a9df2b609638b',
  nickName: '小管',
  telephone: '19826582037',
  email: '2735332396@qq.com',
  status: '1',
  roles: ['admin']
}

export const initialMenu: Array<MenuFields> = [
  {
    path: '/usualManage',
    name: 'usualManage',
    component: 'Layout',
    status: '1',
    statusDetail: '启用',
    menuType: '1',
    meta: {
      title: '通用管理',
      icon: 'Grid'
    },
    parentId: 0,
    menuId: 11,
    order: 1
  },
  {
    name: "uploadImage",
    path: "/uploadImage",
    status: '1',
    statusDetail: '启用',
    menuType: '2',
    meta: {
      title: "图片管理",
      icon: "#"
    },
    menuId: 1101,
    parentId: 11,
    component: "UsualManage/UploadImage/index.vue",
    order: 1
  },
  {
    path: "/system",
    name: "system",
    component: "Layout",
    status: '1',
    menuType: '1',
    statusDetail: '启用',
    meta: {
      title: "系统管理",
      icon: "Tools"
    },
    parentId: 0,
    menuId: 12,
    order: 2
  },
  {
    name: "usersManage",
    path: "/usersManage",
    status: '1',
    statusDetail: '启用',
    menuType: '2',
    meta: {
      title: "用户管理",
      icon: "#"
    },
    parentId: 12,
    menuId: 1201,
    component: "System/UsersManage/index.vue",
    order: 1
  },
  {
    name: "rolesManage",
    path: "/rolesManage",
    status: '1',
    statusDetail: '启用',
    menuType: '2',
    meta: {
      title: "角色管理",
      icon: "#"
    },
    parentId: 12,
    menuId: 1202,
    component: "System/RolesManage/index.vue",
    order: 2
  },
  {
    name: "menuManage",
    path: "/menuManage",
    status: '1',
    statusDetail: '启用',
    menuType: '2',
    meta: {
      title: "菜单管理",
      icon: "#"
    },
    parentId: 12,
    menuId: 1203,
    component: "System/MenuManage/index.vue",
    order: 3
  }
]

export const initialRoleInfo: RoleFields = {
  roleId: 1,
  roleName: '超级管理员',
  roleKey: 'admin',
  order: 1,
  remarks: '暂无',
  status: '1'
}